package org.minbox.chapter.seata.mapper;


import com.cloud.model.account.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountMapper {
    @Update("update  seata_account set money =money-#{money} where id =#{id}")
    boolean update(Account account);


    @Select("select * from seata_account where   id =#{value}")
    Account selectOne(Integer id );
}
